<%@ page import="com.bdqn.pojo.Newtable" %>
<%@ page import="com.bdqn.dao.NewDao" %>
<%@ page import="com.bdqn.pojo.NewType" %>
<%@ page import="java.util.List" %>
<%@ page import="com.bdqn.dao.NewTypeDao" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/8/28 0028
  Time: 8:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        table {
            border: 1px solid red;
            margin: 0px auto;
            border-collapse: collapse;
            width: 800px;
            font-size: 30px;
            text-align: center;
            color: blue;

        }

        td {
            border: 1px solid red;
        }

        .a {
            width: 200px;
            height: 40px;
            font-size: 30px;
        }

    </style>
</head>
<body>
<% String id = request.getParameter("id");
    Newtable table = NewDao.GetObj(id);
    List<NewType> list = NewTypeDao.getlist();
%>
<form action="/Web1/List.jsp" method="post">
    <input type="hidden" name="id" value="<%=id %>">
    <table>
        <tr>
            <td>标题:</td>
            <td><input class="a" name="nn" type="text" value="<%=table.getTitle() %>"></td>
        </tr>
        <tr>
            <td>新闻类型：</td>
            <td>
                <input class="a" name="nn" type="text" value="<%=table.getContext()%>">
            </td>
        </tr>
        <tr>
            <td>姓名:</td>
            <td><input class="a" name="nn" type="text" value="<%=table.getAuthor() %>"></td>
        </tr>
        <tr>
            <td>备注:</td>
            <td><input class="a" name="nn" type="text" value="<%=table.getName() %>"></td>
        </tr>

        <tr>
            <td colspan="2">
                <input type="submit" value="关闭">
            </td>
        </tr>
    </table>
</form>
</body>
</html>
